<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
         
            width: 500px;
            padding: 30px 0;
            border: 1px solid black;
        }
       .box1{
          
            height: 200px;
            width: 200px;
            background-color: red;
            margin:0 auto;     
        }
    </style>
</head>
<body>
 <div class="box">
    <div class="box1"></div>
</div>
</body>
</html>